/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lianxishilili.demo;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 *
 * @author Administrator
 */
public class NewClass {
    public static void main(String[] args)throws Exception {
        InputStream in1=System.in;
        InputStreamReader in2=new InputStreamReader (in1);
        BufferedReader in3=new BufferedReader (in2);
        
        System.out.print("请输入第一个数：");
        float first=Float.parseFloat(in3.readLine());
        System.out.println();
        System.out.print("请输入第二个数：");
        float second=Float.parseFloat(in3.readLine());
        System.out.println();
        System.out.print("这两个数的和是：");         
        System.out.println(first+second);
         
}
}